﻿namespace Blog.Service
{
    /// <summary>
    /// 管理员
    /// </summary>
    public class ManagerService : IManagerService
    {
        private ISqlSugarClient _db;
        public ManagerService(ISqlSugarClient db)
        {
            _db = db;
        }

        public ApiResult GetManagerDetail()
        {
            var data = _db.Queryable<Manager>().First();

            return new ApiResult().OK(data);
        }


    }
}
